KVERS = $(shell uname -r)

# Kernel modules
obj-m += globalmem.o

# Specify flags for the module compilation.
#EXTRA_CFLAGS=-g -O0

build: kernel_modules
app: app.elf

kernel_modules:
	make -C /lib/modules/$(KVERS)/build M=$(CURDIR) modules

app.elf: main.c
	gcc -o app.elf main.c

clean:
	make -C /lib/modules/$(KVERS)/build M=$(CURDIR) clean
